package com.leesche.zcsp.node.web.service.impl;

import com.leesche.zcsp.node.web.dao.PubDeviceLoginDao;
import com.leesche.zcsp.node.web.model.PubDeviceLogin;
import com.leesche.zcsp.node.web.model.PubDeviceLoginCriteria;
import com.leesche.zcsp.node.web.service.PubDeviceLoginService;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDeviceLoginDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDeviceLoginCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Autor:reid
 * @Date:2017/1/19
 */
@Service
public class PubDeviceLoginServiceImpl extends BaseServiceImpl<PubDeviceLogin, PubDeviceLoginCriteria, PubDeviceLoginDto,
        QueryPubDeviceLoginCondition, Long> implements PubDeviceLoginService {

    @Autowired
    private PubDeviceLoginDao pubDeviceLoginDao;

    @Autowired
    public void setBaseDao(PubDeviceLoginDao pubDeviceLoginDao) {
        super.setBaseDao(pubDeviceLoginDao);
    }

    @Override
    public int updateByCondition(QueryPubDeviceLoginCondition condition) {
        return pubDeviceLoginDao.updateByCondition(condition);
    }
}
